<template>
  <view class="search-box" :style="{'background-color':bgColor}" @click="$emit('click')">
    <view class="as-input" :style="{'border-radius':radius+'rpx'}">
      <uni-icons type="search" size="16"></uni-icons>
      <text>搜索</text>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {};
  },
  props:{
    bgColor:{
      type:String,
      default:'#c00000'
    },
    radius:{
      type:Number,
      default:30
    }
  }
};
</script>

<style lang="scss">
.search-box {
  // background-color: #c00000;
  height: 80rpx;
  padding: 0 20rpx;
  display: flex;
  align-items: center;
  .as-input {
    width: 100%;
    height: 60rpx;
    background-color: #fff;
    text-align: center;
    // border-radius: 30rpx;
    line-height: 60rpx;
    text {
      font-size: 28rpx;
    }
  }
}
</style>
